package com.pancm.datacollector.queue;

import java.time.LocalDateTime;
import java.util.HashMap;

/**
 * 采集的数据实体类
 */
public class CollectedData {
    /**
     * 数据ID
     */
    private String id;
    
    /**
     * 采集时间
     */
    private LocalDateTime collectTime;
    
    /**
     * 数据来源
     */
    private String source;
    
    /**
     * 采集的原始数据
     */
    private HashMap<String, Object> data;
    
    /**
     * 数据状态
     */
    private DataStatus status;

    public CollectedData(String source, HashMap<String, Object> data) {
        this.id = java.util.UUID.randomUUID().toString();
        this.collectTime = LocalDateTime.now();
        this.source = source;
        this.data = data;
        this.status = DataStatus.PENDING;
    }

    // Getters and Setters
    public String getId() {
        return id;
    }

    public LocalDateTime getCollectTime() {
        return collectTime;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public HashMap<String, Object> getData() {
        return data;
    }

    public void setData(HashMap<String, Object> data) {
        this.data = data;
    }

    public DataStatus getStatus() {
        return status;
    }

    public void setStatus(DataStatus status) {
        this.status = status;
    }
} 